package com.atguigu.gulimall.cart.Feign;

import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;
import java.util.List;

@FeignClient("gulimall-product")
public interface ProductFeignService {

    @RequestMapping("/product/skuinfo/info/{skuId}")
    R info(@PathVariable("skuId") Long skuId);



    @GetMapping("/product/skusaleattrvalue/getAllSaleattrAsJson/{skuId}")
     List<String> getAllSaleattrAsJson(@RequestParam("skuId") Long skuId);


    @GetMapping("/product/skuinfo/price/{skuId}")
     R getProductCurrentPrice(@PathVariable("skuId") Long skuId);


}
